<?PHP
session_start();
header("Content-type: image/png");

$sveri = mt_rand();
$_SESSION['skey']=$sveri;

$im = imagecreate(150,60);
$bg = imagecolorallocate($im, 183, 181, 181);
$black = imagecolorallocate($im, 0, 0, 0);
imagestring($im, 5, 10, 30, $sveri, $black);

#function drwline(){
#$ran1 = mt_ran(10, 140);
#$ran2 = mt_ran(10, 50);
#$ran3 = mt_ran(10, 140);
#$ran4 = mt_ran(10, 50);
#imageline($im, $ran1, $ran2, $ran3, $ran4, $black);
#}

#drwline();
#drwline();
#drwline();
#drwline();
imageline($im, 100, 40, 80, 35, $black);
imageline($im, 85, 36, 82, 108, $black);
imageline($im, 78, 63, 123, 83, $black);
imagepng($im);
imagedestroy($im);
?>
